package com.procurement.inquiry.service;

import com.procurement.inquiry.domain.PcmQuotationProduct;
import com.procurement.inquiry.domain.PcmSupplier;
import com.ruoyi.system.api.domain.*;

import java.util.List;
import java.util.Map;

/**
 * 我的待办模块
 */
public interface IPcmAuditService {
    public List<PcmAudit> selectPcmAuditList(Long supplier);

    public PcmInquiryDemand selectPcmInquryDemandId(String inquiryDemandNumber);

    public PcmSupplier selectPcmSupplier(Long supplierID2);

    public com.procurement.inquiry.domain.PcmInquiryDemand selectPcmInquiryDemandList(String inquiryDemandNumber);

    public PcmSupplierQuotation selectSupplierQuotation(Long quotationID);
    public PcmSupplierQuotation selectSupplierQuotation2(String inquiryDemandNumber,Long quotingSupplier,String auditTableNumber);

    public int insertPcmQuotationProduct(PcmQuotationProduct pcmQuotationProduct);

    public List<com.ruoyi.system.api.domain.PcmQuotationProduct> selectPcmQuotationProduct(Long id);

    public PcmMaterialRecord selectPcmMaterialRecord(String productNumber);

    int updatePcmQuotationProduct(PcmQuotationProduct pcmQuotationProduct);

    int updatePcmSupplierQuotation(PcmSupplierQuotation pcmSupplierQuotation);

    PcmSupplier selectPcmSupplier2(Long permission);

    int updatePcmAudit(Long circulationStatus, Long auditId);

    int insertAttach(String attachmentName,String attachmentAddress, Long quotationID);

    int deleteAttach(Long quotationID);

    List<SysFile> selectAttach(Long quotationID);
    /**
     * 查询供应商供应样品管理
     *
     * @param supplierSampleManagementID 供应商供应样品管理主键
     * @return 供应商供应样品管理
     */
    public PcmSupplierSampleManagement selectPcmSupplierSampleManagementBySupplierSampleManagementID(Long supplierSampleManagementID);

    /**
     *查询供应商准入数据
     * @param srmID  srm_approvals主键
     * @return
     */
    public SrmApprovals selectSrmClaAll(Long srmID);

    /**
     * 查询采购申请
     *
     * @param purchaseRequestNumber 采购申请主键
     * @return 采购申请
     */
    public PcmPurchaseRequest selectPcmPurchaseRequestByPurchaseRequestNumber(String purchaseRequestNumber);

    public boolean updatePcmPurchaseRequest(PcmAudit pcmAudit);

    public boolean updateRequest(PcmPurchaseRequest purchaseRequest);

    public boolean updateApplicationDetail(String Number);

    //根据关联表Id查询邀标审核的信息
    PcmBiddingInviteTenders selInvitationInformation(Long middleId);

    PcmInvitedSupplier selByInvitedSupplierId(Long invitedSupplierId);

    //查询评标待办的渲染内容
    Map<String,Object> selEvaluationContent(Long expertSupplierId);

    int updateAudit(Long AuditId,Long supplierId);
}
